<%@include file="/init.jsp"%>

<liferay-ui:search-container emptyResultsMessage="there-are-no-products"
	delta="5">

	<liferay-ui:search-container-results>

		<%
			List<PRRegistration> registrations = ActionUtil
							.getRegistration(renderRequest);

					total = registrations.size();
					results = ListUtil.subList(registrations,
							searchContainer.getStart(),
							searchContainer.getEnd());

					pageContext.setAttribute("total", total);
					pageContext.setAttribute("results", results);
		%>
	</liferay-ui:search-container-results>

	<liferay-ui:search-container-row
		className="com.inkwell.internet.productregistration.model.PRRegistration"
		keyProperty="registrationId" modelVar="registration">
		
		<liferay-ui:search-container-column-text name="date-purchased"
			property="datePurchased" />
		<liferay-ui:search-container-column-text name="product-serial-number"
			property="serialNumber" />
		<liferay-ui:search-container-column-text name="how-hear"
			property="howHear" />
		<liferay-ui:search-container-column-text name="where-purchased"
			property="wherePurchased" />
		<liferay-ui:search-container-column-jsp
			path="/admin/display_actions.jsp" align="right" />

	</liferay-ui:search-container-row>

	<liferay-ui:search-iterator />

</liferay-ui:search-container>

